package com.example.array.unit8;

import java.util.Arrays;

/**
 * @author ASUS
 */
public class FillTest {
    public static void main(String[] args) {
        int[] array = new int[6];
        Arrays.fill(array, 100);
        for (int j : array) {
            System.out.println(j);
        }
        System.out.println();
        Arrays.fill(array, 3, 6, 50);
        for (int j : array) {
            System.out.println(j);
        }
    }
}